<%= head_template(config, %{title: module.title}) %>
    <h1 id="content">
      <%= module.title %> <%= H.module_type(module) %>
    </h1>

    <%= if deprecated = module.deprecated do %>
      <div class="deprecated">
        This <%= module.type %> is deprecated. <%=h deprecated %>.
      </div>
    <% end %>

    <%= if doc = module.rendered_doc do %>
      <section id="moduledoc" class="docstring">
        <%= H.link_moduledoc_headings(doc) %>
      </section>
    <% end %>

    <%= if summary != [] do %>
      <section id="summary" class="details-list">
        <h1 class="section-heading">Summary</h1>
        <%= for {name, nodes} <- summary, do: H.summary_template(name, nodes) %>
      </section>
    <% end %>

    <%= for {name, nodes} <- summary, key = text_to_id(name) do %>
      <section id="<%= key %>" class="details-list">
        <h1 class="section-heading"><%=h to_string(name) %></h1>
        <div class="<%= key %>-list">
          <%= for node <- nodes, do: H.detail_template(node, module) %>
        </div>
      </section>
    <% end %>
    <%= before_closing_body_tag(config, :epub) %>
  </body>
</html>
